*******************************************************************************************************************************
* Documentation for Reproduction of
* Zigerell 2015 Distinguishing Racism from Ideology: A Methodological Inquiry 
* Political Research Quarterly 68: 521-536
* L.J Zigerell
* Stata version 11
*******************************************************************************************************************************
*******************************************************************************************************************************

set mem 500m
set more off
use13 "E:anes 2012 time series\anes_timeseries_2012_dta\anes_timeseries_2012.dta", clear
tab wave_completions
keep if wave_completions == 1 // keep only respondents who were in pre-election and post-election survey

*******************************************************************************************************************************
*** Racial groups
*******************************************************************************************************************************
tab dem_raceeth 
gen black = dem_raceeth
recode black (-9/-1 = .) (1 3 4 = 0) (2 = 1)
tab dem_raceeth black

tab dem_raceeth 
gen white = dem_raceeth 
recode white (-9/-1 = .) (2 3 4 = 0)
tab dem_raceeth white

*** run this next command for only Study 1 ***
*** this is necessary for the standardization to be based only on white respondents ***
keep if white == 1
*** do not run the above command for Study 2

*******************************************************************************************************************************
*** Racial resentment
*******************************************************************************************************************************
tab resent_workway 
gen resent1 = resent_workway 
recode resent1 (-9/-1 = .)
replace resent1 = 3 - resent1
tab resent1

tab resent_slavery 
gen resent2 = resent_slavery 
recode resent2 (-9/-1 = .)
replace resent2 = resent2 - 3
tab resent2

tab resent_deserve
gen resent3 = resent_deserve
recode resent3 (-9/-1 = .)
replace resent3 = resent3 - 3
tab resent3

tab resent_try 
gen resent4 = resent_try 
recode resent4 (-9/-1 = .)
replace resent4 = 3 - resent4
tab resent4

gen rresent = 0
replace rresent = rresent + resent1 + resent2 + resent3 + resent4
replace rresent = . if resent1 == .
replace rresent = . if resent2 == .
replace rresent = . if resent3 == .
replace rresent = . if resent4 == .
tab rresent resent1, mi
tab rresent resent2, mi
tab rresent resent3, mi
tab rresent resent4, mi
sum rresent
egen rresent_std = std(rresent)
replace rresent = rresent_std
sum rresent

alpha resent1 resent2 resent3 resent4, min(4) item gen(rresentALPHA)  // check to make sure rresent is coded correctly
pwcorr rresent rresentALPHA, sig obs
sum caseid if resent1 != . & resent2 != . & resent3 !=. & resent4 !=.

*******************************************************************************************************************************
*** Dependent variables that are explicitly racial
*******************************************************************************************************************************

// 1. Oppose black hiring and promotion preferences
tab aapost_hire_x
gen oppblackpref4 = aapost_hire_x
recode oppblackpref4 (-9/-1 = .) (4=3) (5=4)
egen oppblackpref4_std = std(oppblackpref4)
replace oppblackpref4 = oppblackpref4_std
sum oppblackpref4
tab aapost_hire_x oppblackpref4, mi

// 2. Oppose affirmative action in universities 
tab aa_uni_x
gen oppaactionuniv7 = aa_uni_x
recode oppaactionuniv7 (-9/-1 = .)
egen oppaactionuniv7_std = std(oppaactionuniv7)
replace oppaactionuniv7 = oppaactionuniv7_std
sum oppaactionuniv7
tab aa_uni_x oppaactionuniv7, mi

// 3. Oppose affirmative action in the workplace
tab aa_work_x 
gen oppaactionwork7 = aa_work_x 
recode oppaactionwork7 (-9/-1 = .)
egen oppaactionwork7_std = std(oppaactionwork7)
replace oppaactionwork7 = oppaactionwork7_std
sum oppaactionwork7
tab aa_work_x oppaactionwork7, mi

// 4. Oppose government ensuring fair jobs for blacks
tab fairjob_opin_x 
gen oppfairjobblacks4 = fairjob_opin_x 
recode oppfairjobblacks4 (-9/-1 = .)(4=3) (5=4)
egen oppfairjobblacks4_std = std(oppfairjobblacks4)
replace oppfairjobblacks4 = oppfairjobblacks4_std
sum oppfairjobblacks4
tab fairjob_opin_x oppfairjobblacks4, mi

// 5. Oppose special federal effort to help blacks
tab aidblack_self
gen oppaidblacks7 = aidblack_self 
recode oppaidblacks7 (-9/-1 = .)
egen oppaidblacks7_std = std(oppaidblacks7)
replace oppaidblacks7 = oppaidblacks7_std
sum oppaidblacks7
tab aidblack_self oppaidblacks7, mi

// 6. Scale: Oppose assistance policies for blacks
alpha oppblackpref4 oppaactionuniv7 oppaactionwork7 oppfairjobblacks4 oppaidblacks7, gen(blscale) min(3) item std
pwcorr blscale oppblackpref4 oppaactionuniv7 oppaactionwork7 oppfairjobblacks4 oppaidblacks7
sum blscale
egen blscale_std = std(blscale)
replace blscale = blscale_std
sum blscale

*******************************************************************************************************************************
*** Dependent variables that are NOT explicitly racial
*** Note that nonracial dependent variables are presented in a different order in the manuscript
*******************************************************************************************************************************

// 1. Oppose laws against gay job discrimination
tab gayrt_discrev_x 
tab gayrt_discstd_x
tab gayrt_discrev_x gayrt_discstd_x
gen gayjob4 = gayrt_discrev_x 
recode gayjob4 (-9/-1=.) (4=3) (5=4)
replace gayjob4 = 1 if gayrt_discstd_x == 1
replace gayjob4 = 2 if gayrt_discstd_x == 2
replace gayjob4 = 3 if gayrt_discstd_x == 4
replace gayjob4 = 4 if gayrt_discstd_x == 5
egen gayjob4_std = std(gayjob4)
replace gayjob4 = gayjob4_std
sum gayjob4
tab gayrt_discrev_x gayjob4, mi 
tab gayrt_discstd_x gayjob4, mi 

// 2. Oppose letting gays serve in the military
tab gayrt_milrev_x 
tab gayrt_milstd_x 
tab gayrt_milrev_x gayrt_milstd_x 
gen gaymil4 = gayrt_milrev_x 
recode gaymil4(-9/-1=.) (4=3) (5=4)
replace gaymil4 = 1 if gayrt_milstd_x == 1
replace gaymil4 = 2 if gayrt_milstd_x == 2
replace gaymil4 = 3 if gayrt_milstd_x == 4
replace gaymil4 = 4 if gayrt_milstd_x == 5
egen gaymil4_std = std(gaymil4)
replace gaymil4 = gaymil4_std
sum gaymil4
tab gayrt_milrev_x gaymil4, mi 
tab gayrt_milstd_x gaymil4, mi 

// 3. Gays should not be permitted to marry
tab gayrt_marry
gen gaymarry3 = gayrt_marry
recode gaymarry3 (-9/-1=.)
egen gaymarry3_std = std(gaymarry3)
replace gaymarry3 = gaymarry3_std
sum gaymarry3
tab gayrt_marry gaymarry3, mi

// 4. Gays should not be allowed to adopt [0/1]
tab gayrt_adopt 
gen gayadopt2 = gayrt_adopt 
recode gayadopt2 (-9/-1=.) (1=0) (2=1)
tab gayrt_adopt gayadopt2, mi 

// 5. Gay and lesbian feeling thermometer
tab ftgr_gay 
gen gayfeel100 = ftgr_gay 
recode gayfeel100 (-9/-1=.)
sum gayfeel100
replace gayfeel100 = 100 - gayfeel100
egen gayfeel100_std = std(gayfeel100)
replace gayfeel100 = gayfeel100_std
sum gayfeel100
pwcorr ftgr_gay gayfeel100 if ftgr_gay > -1

// 6. SCALE: Negative attitudes toward gays and lesbians
alpha gayjob4 gaymil4 gayadopt2 gaymarry3 gayfeel100, gen(gayALPHA) item min(3) std
* alpha of 0.85
egen gayALPHA_std = std(gayALPHA)
replace gayALPHA = gayALPHA_std
sum gayALPHA

// 7. Prolife attitudes on four-part abortion item
tab abortpre_4point 
gen abort4 = abortpre_4point 
recode abort4 (-9/-1=.) (5=.) (4=1) (3=2) (2=3) (1=4)
egen abort4_std = std(abort4)
replace abort4 = abort4_std
sum abort4
tab abortpre_4point abort4, mi

// 8. Oppose abortion to save woman's life
tab abort_fatal_x 
gen abfatal9 = abort_fatal_x 
recode abfatal9 (-9/-1=.)
egen abfatal9_std = std(abfatal9)
replace abfatal9 = abfatal9_std
sum abfatal9
tab abort_fatal_x abfatal9, mi

// 9. Oppose abortion b/c rape
tab abort_rape_x 
gen abrape9 = abort_rape_x 
recode abrape9 (-9/-1=.)
egen abrape9_std = std(abrape9)
replace abrape9 = abrape9_std
sum abrape9
tab abort_rape_x abrape9, mi

// 10. Oppose abortion b/c birth defect
tab abort_bd_x 
gen abdefect9 = abort_bd_x 
recode abdefect9 (-9/-1=.)
egen abdefect9_std = std(abdefect9)
replace abdefect9 = abdefect9_std
sum abdefect9
tab abort_bd_x abdefect9, mi

// 11. Oppose abortion b/c incest
tab abort_incest_x 
gen abincest9 = abort_incest_x 
recode abincest9 (-9/-1=.)
egen abincest9_std = std(abincest9)
replace abincest9 = abincest9_std
sum abincest9
tab abort_incest_x abincest9, mi

// 12. Oppose abortion b/c woman's health
tab abort_health_x 
gen abhealth9 = abort_health_x 
recode abhealth9 (-9/-1=.)
egen abhealth9_std = std(abhealth9)
replace abhealth9 = abhealth9_std
sum abhealth9
tab abort_health_x abhealth9, mi

// 13. Oppose abortion b/c financial concerns
tab abort_fin_x
gen abmoney9 = abort_fin_x
recode abmoney9 (-9/-1=.)
egen abmoney9_std = std(abmoney9)
replace abmoney9 = abmoney9_std
sum abmoney9
tab abort_fin_x abmoney9, mi

// 14. Oppose abortion b/c fetal sex selection
tab abort_sex_x  
gen absex9 = abort_sex_x  
recode absex9 (-9/-1=.)
egen absex9_std = std(absex9)
replace absex9 = absex9_std
sum absex9
tab abort_sex_x absex9, mi

// 15. Oppose abortion b/c woman's choice
tab abort_choice_x 
gen abchoice9 = abort_choice_x 
recode abchoice9 (-9/-1=.)
egen abchoice9_std = std(abchoice9)
replace abchoice9 = abchoice9_std
sum abchoice9
tab abort_choice_x abchoice9, mi

// 16. SCALE [7-15]: Prolife attitudes
alpha abort4 abfatal9 abrape9 abdefect9 abincest9 abhealth9 abmoney9 absex9 abchoice9, gen(abortALPHA) item min(5) std
* alpha of 0.91
egen abortALPHA_std = std(abortALPHA)
replace abortALPHA = abortALPHA_std
sum abortALPHA

// 17. Negative ratings on a feminist feeling thermometer
tab ftgr_feminists 
gen femfeel100 = ftgr_feminists 
recode femfeel100 (-9/-1=.)
sum femfeel100
replace femfeel100 = 100 - femfeel100
egen femfeel100_std = std(femfeel100)
replace femfeel100 = femfeel100_std
sum femfeel100
pwcorr ftgr_feminists femfeel100 if ftgr_feminists > -1

// 18. Harder for working mom to bond w/ child
tab women_bond_x 
gen fembond7 = women_bond_x 
recode fembond7 (-9/-1=.)
egen fembond7_std = std(fembond7)
replace fembond7 = fembond7_std
sum fembond7 
tab women_bond_x fembond7, mi 

// 19. Better if man works, woman cares for home
tab women_works_x 
gen femwork7 = women_works_x 
recode femwork7 (-9/-1=.)
replace femwork7 = 8 - femwork7
egen femwork7_std = std(femwork7)
replace femwork7 = femwork7_std
sum femwork7 
tab women_works_x femwork7, mi 

// 20. Bad if woman president in next 20 years
tab wpres_gdbd_x
gen fempres7 = wpres_gdbd_x 
recode fempres7 (-9/-1=.)
egen fempres7_std = std(fempres7)
replace fempres7 = fempres7_std
sum fempres7 
tab wpres_gdbd_x fempres7, mi

// 21. Modern sexism: discrimination is not a problem
tab modsex_discamt
gen modsexdiscrim5 = modsex_discamt
recode modsexdiscrim5 (-9/-1=.)
replace modsexdiscrim5 = 6 - modsexdiscrim5
egen modsexdiscrim5_std = std(modsexdiscrim5)
replace modsexdiscrim5 = modsexdiscrim5_std
sum modsexdiscrim5
tab modsex_discamt modsexdiscrim5, mi

// 22. Modern sexism: media should pay less attn
tab modsex_media_x
gen modsexmedia7 = modsex_media_x 
recode modsexmedia7 (-9/-1=.)
egen modsexmedia7_std = std(modsexmedia7)
replace modsexmedia7 = modsexmedia7_std
sum modsexmedia7
tab modsex_media_x modsexmedia7, mi

// 23. Modern sexism: women seek special favors
tab modsex_special
gen modsexspecial5 = modsex_special
recode modsexspecial5 (-9/-1=.)
egen modsexspecial5_std = std(modsexspecial5)
replace modsexspecial5 = modsexspecial5_std
sum modsexspecial5 
tab modsex_special modsexspecial5, mi 

// 24. Modern sexism: work discrimination
tab modsex_disc 
gen modsexhiring5 = modsex_disc 
recode modsexhiring5 (-9/-1=.)
replace modsexhiring5 = 6 - modsexhiring5
egen modsexhiring5_std = std(modsexhiring5)
replace modsexhiring5 = modsexhiring5_std
sum modsexhiring5
tab modsex_disc modsexhiring5, mi

// 25. Modern sexism: complaining causes more problems
tab modsex_prob
gen modsexcomplain5 = modsex_prob
recode modsexcomplain5 (-9/-1=.)
egen modsexcomplain5_std = std(modsexcomplain5)
replace modsexcomplain5 = modsexcomplain5_std
sum modsexcomplain5 
tab modsex_prob modsexcomplain5, mi 

// 26. Modern sexism: women have more opportunities than men
tab modsex_oppor_x 
gen modsexoppor7 = modsex_oppor_x 
recode modsexoppor7 (-9/-1=.)
egen modsexoppor7_std = std(modsexoppor7)
replace modsexoppor7 = modsexoppor7_std
sum modsexoppor7
tab modsex_oppor_x modsexoppor7, mi

// SCALE [17-26]: Conservative attitudes toward women
alpha femfeel100 fembond7 femwork7 fempres7 modsexdiscrim5 modsexmedia7 modsexspecial5 modsexhiring5 modsexcomplain5 modsexoppor7, gen(femALPHA) item min(4) std
* alpha of 0.74
egen femALPHA_std = std(femALPHA)
replace femALPHA = femALPHA_std
sum femALPHA // decided to use this instead of just the modern sexism items

// 28. Opposition to environmental regulation
tab envjob_self 
gen envjobs7 = envjob_self 
recode envjobs7 (-9/-1=.)
egen envjobs7_std = std(envjobs7)
replace envjobs7 = envjobs7_std
sum envjobs7
tab envjob_self envjobs7, mi

// 29. Decrease federal spending on the environment
tab fedspend_enviro
gen envspend3 = fedspend_enviro
recode envspend3 (-9/-1=.) (2=1) (3=0) (1=-1)
egen envspend3_std = std(envspend3)
replace envspend3 = envspend3_std
sum envspend3
tab fedspend_enviro envspend3, mi

// 30. U.S. should have more nuclear power plants
tab envir_nuke 
gen nuclear3 = envir_nuke 
recode nuclear3 (-9/-1=.) (2=-1) (3=0)
egen nuclear3_std = std(nuclear3)
replace nuclear3 = nuclear3_std
sum nuclear3
tab envir_nuke nuclear3, mi

// 31. Skepticism that global warming is happening [0/1]
tab envir_gwarm 
gen gwarm2 = envir_gwarm 
recode gwarm2 (-9 -8=.) (1=0) (2=1)
tab gwarm2
tab envir_gwarm gwarm2, mi 

// 32. Rising temperatures are good
tab envir_gwgood 
gen gwarmgood3 = envir_gwgood 
recode gwarmgood3 (-9/-1=.) (2=-1) (3=0)
egen gwarmgood3_std = std(gwarmgood3)
replace gwarmgood3 = gwarmgood3_std
sum gwarmgood3
tab envir_gwgood gwarmgood3, mi

// 33. Global warming is mostly natural
tab envir_gwhow 
gen gwarmhuman3 = envir_gwhow 
recode gwarmhuman3  (-9/-1=.) (1=-1) (2=1) (3=0) 
egen gwarmhuman3_std = std(gwarmhuman3)
replace gwarmhuman3 = gwarmhuman3_std
sum gwarmhuman3 
tab envir_gwhow gwarmhuman3, mi

// 34. SCALE [28-33]: Conservative views on the environment
alpha envjobs7 envspend3 nuclear3 gwarm2 gwarmgood3 gwarmhuman3, gen(enviroALPHA) item min(4) std
* alpha of 0.75
egen enviroALPHA_std = std(enviroALPHA)
replace enviroALPHA = enviroALPHA_std
sum enviroALPHA

// 35. Favor reducing the budget deficit
tab budget_deficit_x
gen defred7 = budget_deficit_x
recode defred7 (-9/-1=.)
replace defred7 = 8 - defred7
egen defred7_std = std(defred7)
replace defred7 = defred7_std
sum defred7
tab budget_deficit_x defred7, mi

// 36. Importance of reducing the budget deficit
tab budget_defimp
gen defimp5 = budget_defimp
recode defimp5 (-9/-1=.)
replace defimp5 = 6 - defimp
egen defimp5_std = std(defimp5)
replace defimp5 = defimp5_std
sum defimp5
tab budget_defimp defimp5, mi

// 37. Oppose reducing deficit by more taxes on high earners
tab budget_rdef250k
gen def250k3 = budget_rdef250k
recode def250k3 (-9/-1=.) (1=-1) (2=1) (3=0)
egen def250k3_std = std(def250k3)
replace def250k3 = def250k3_std
sum def250k3
tab budget_rdef250k def250k3, mi

// 38. Favor reducing deficit with Medicare voucher
tab budget_rdefmed 
gen defvoucher3 = budget_rdefmed 
recode defvoucher3 (-9/-1=.) (2=-1) (3=0)
egen defvoucher3_std = std(defvoucher3)
replace defvoucher3 = defvoucher3_std
sum defvoucher3
tab budget_rdefmed defvoucher3, mi

// 39. Oppose reducing deficit by more corporate taxation
tab budget_rdefctax 
gen defcorptax3 = budget_rdefctax 
recode defcorptax3 (-9/-1=.) (1=-1) (2=1) (3=0)
egen defcorptax3_std = std(defcorptax3)
replace defcorptax3 = defcorptax3_std
sum defcorptax3
tab budget_rdefctax defcorptax3, mi

// 40. Oppose reducing deficit by less military spending
tab budget_rdefmil
gen defmil3 = budget_rdefmil
recode defmil3 (-9/-1=.) (1=-1) (2=1) (3=0)
egen defmil3_std = std(defmil3)
replace defmil3 = defmil3_std
sum defmil3
tab budget_rdefmil defmil3, mi

// 41. Favor reducing deficit by cutting federal employees
tab budget_rdefemp 
gen deffedemp3 = budget_rdefemp 
recode deffedemp3 (-9/-1=.) (2=-1) (3=0)
egen deffedemp3_std = std(deffedemp3)
replace deffedemp3 = deffedemp3_std
sum deffedemp3
tab budget_rdefemp deffedemp3, mi

// 42. Favor reducing deficit by cutting non-military spending
tab budget_rdefgov
gen defnomil3 = budget_rdefgov
recode defnomil3 (-9/-1=.) (2=-1) (3=0)
egen defnomil3_std = std(defnomil3)
replace defnomil3 = defnomil3_std
sum defnomil3
tab budget_rdefgov defnomil3, mi

// 43. Oppose millionaire tax
tab milln_milltax_x
gen taxmil7 = milln_milltax_x
recode taxmil7 (-9/-1=.)
egen taxmil7_std = std(taxmil7)
replace taxmil7 = taxmil7_std
sum taxmil7
tab milln_milltax_x taxmil7, mi

// 44. Encourage outsourcing
tab outsource_enc_x 
gen outsource5 = outsource_enc_x 
recode outsource5 (-9/-1=.)
egen outsource5_std = std(outsource5)
replace outsource5 = outsource5_std
sum outsource5
tab outsource_enc_x outsource5, mi

// 45. Favor investing Social Security in stocks
tab ssinv_invest_x 
gen ssstock7 = ssinv_invest_x 
recode ssstock7 (-9/-1=.)
replace ssstock7 = 8 - ssstock7
egen ssstock7_std = std(ssstock7)
replace ssstock7 = ssstock7_std
sum ssstock7
tab ssinv_invest_x ssstock7, mi

// 46. SCALE [35-45]: Conservative fiscal policy
alpha defred7 defimp5 def250k3 defvoucher3 defcorptax3 defmil3 deffedemp3 defnomil3 taxmil7 outsource5 ssstock7, gen(fiscalALPHA) item min(5) std
* alpha of 0.74
egen fiscalALPHA_std = std(fiscalALPHA)
replace fiscalALPHA = fiscalALPHA_std
sum fiscalALPHA

// 47. Oppose limiting corporate campaign contributions
tab campfin_limcorp
gen cflimit3 = campfin_limcorp
recode cflimit3 (-9/-1=.) (2=1) (3=0) (1=-1)
egen cflimit3_std = std(cflimit3)
replace cflimit3 = cflimit3_std
sum cflimit3
tab campfin_limcorp cflimit3, mi

// 48. Oppose banning corporate/union campaign ads
tab campfin_banads
gen cfads3 = campfin_banads
recode cfads3 (-9/-1=.) (2=1) (3=0) (1=-1)
egen cfads3_std = std(cfads3)
replace cfads3 = cfads3_std
sum cfads3
tab campfin_banads cfads3, mi

// 49. Increase defense spending
tab defsppr_self
gen defspend7 = defsppr_self
recode defspend7 (-9/-1 =.)
egen defspend7_std = std(defspend7)
replace defspend7 = defspend7_std
sum defspend7
tab defsppr_self defspend7, mi

// 50. Positive ratings on a military feeling thermometer
tab ftgr_military
gen feelmil100 = ftgr_military
recode feelmil100 (-9/-1 =.)
sum feelmil100
egen feelmil100_std = std(feelmil100)
replace feelmil100 = feelmil100_std
sum feelmil100
pwcorr ftgr_military feelmil100 if ftgr_military > -1

// 51. Afghanistan war was worth it [0/1]
tab war_worthit
gen warworth2 = war_worthit
recode warworth2 (-9 -8=.) (2=0)
tab warworth2
tab war_worthit warworth2, mi

// 52. Afghanistan war decreased terror threat
tab war_terror 
gen warterror3 = war_terror
recode warterror3 (-9/-1=.) (2=1) (3=0) (1=-1)
egen warterror3_std = std(warterror3)
replace warterror3 = warterror3_std
sum warterror3
tab war_terror warterror3, mi

// 53. Favor court authorization for wiretaps
tab wiretap_warrant 
gen wiretap3 = wiretap_warrant 
recode wiretap3 (-9/-1=.) (2=1) (3=0) (1=-1)
egen wiretap3_std = std(wiretap3)
replace wiretap3 = wiretap3_std
sum wiretap3 
tab wiretap_warrant wiretap3, mi

// 54. Government wiretapping not gone far enough
tab wiretappo_toofar 
gen wiretaptoo3 = wiretappo_toofar 
recode wiretaptoo3 (-9/-1=.) (2=0) (3=1) (1=-1)
egen wiretaptoo3_std = std(wiretaptoo3)
replace wiretaptoo3 = wiretaptoo3_std
sum wiretaptoo3
tab wiretappo_toofar wiretaptoo3, mi

// 55. Favor torture for suspected terrorists
tab dhs_torture 
tab dhs_torturefav
tab dhs_tortureopp
gen protorture7 = .
replace protorture7 = -3 if dhs_tortureopp == 1
replace protorture7 = -2 if dhs_tortureopp == 2
replace protorture7 = -1 if dhs_tortureopp == 3
replace protorture7 = 0 if dhs_torture == 3
replace protorture7 = 1 if dhs_torturefav == 3
replace protorture7 = 2 if dhs_torturefav == 2
replace protorture7 = 3 if dhs_torturefav == 1
tab protorture7
sum protorture7
egen protorture7_std = std(protorture7)
replace protorture7 = protorture7_std
sum protorture7
tab dhs_torture protorture7, mi
tab dhs_torturefav protorture7, mi
tab dhs_tortureopp protorture7, mi

// X. No scale for war items
alpha warworth2 warterror3 wiretap3 wiretaptoo3 protorture7, gen(terrorALPHA) item min(3) std
** alpha of 0.41

// 56. Patriotism: Feel good seeing flag fly
tab patriot_flag
gen patflag5 = patriot_flag
recode patflag5 (-9/-1=.)
replace patflag5 = 6 - patflag
egen patflag5_std = std(patflag5)
replace patflag5 = patflag5_std
sum patflag5
tab patriot_flag patflag5, mi

// 57. Patriotism: Love of country
tab patriot_love 
gen patlove5 = patriot_love 
recode patlove5 (-9/-1=.)
egen patlove5_std = std(patlove5)
replace patlove5 = patlove5_std
sum patlove5
tab patriot_love patlove5, mi

// 58. Patriotism: Important being American
tab patriot_amident
gen patimpt5 = patriot_amident
recode patimpt5 (-9/-1=.)
replace patimpt5 = 6 - patimpt5
egen patimpt5_std = std(patimpt5)
replace patimpt5 = patimpt5_std
tab patriot_amident patimpt5, mi

// 59. SCALE [56-58]: Patriotism
alpha patflag5 patlove5 patimpt5, gen(patALPHA) item min(2) std
* alpha of 0.82
egen patALPHA_std = std(patALPHA)
replace patALPHA = patALPHA_std
sum patALPHA

// 60. Religion important to respondent's life [0/1]
tab relig_import
gen relimp2 = relig_import
recode relimp2 (-9/-1=.) (2=0)
tab relimp2
tab relig_import relimp2, mi

// 61. Religion provides day-to-day guidance
tab relig_guide 
gen relguide3 = relig_guide 
recode relguide3 (-9/-1=.)
egen relguide3_std = std(relguide3)
replace relguide3 = relguide3_std
sum relguide3
tab relig_guide relguide3, mi

// 62. Frequency of prayer
tab relig_pray
gen relpray5 = relig_pray
recode relpray5 (-9/-1=.) (95=.)
replace relpray5 = 6 - relpray5
egen relpray5_std = std(relpray5)
replace relpray5 = relpray5_std
sum relpray5
tab relig_pray relpray5, mi

// 63. Frequency of religious service attendance
tab relig_church
tab relig_churchoft
tab relig_church relig_churchoft
gen relattend5 = .
replace relattend5 = . if relig_churchoft == -9
replace relattend5 = 0 if relig_churchoft == 5
replace relattend5 = 0 if relig_church == 2
replace relattend5 = 0 if relig_churchoft == 5
replace relattend5 = 1 if relig_churchoft == 4
replace relattend5 = 2 if relig_churchoft == 3
replace relattend5 = 3 if relig_churchoft == 2
replace relattend5 = 4 if relig_churchoft == 1
tab relattend5
egen relattend5_std = std(relattend5)
replace relattend5 = relattend5_std
tab relig_church relattend5, mi
tab relig_churchoft relattend5, mi

// 64. More conservative belief about the Bible
tab relig_wordgod 
gen bible3 = relig_wordgod 
recode bible3 (-9/-1=.) (5=.)
replace bible3 = 4 - bible3
egen bible3_std = std(bible3)
replace bible3 = bible3_std
sum bible3
tab relig_wordgod bible3, mi

// 65. Positive ratings on a Christian feeling thermometer
tab ftgr_xian 
gen xianfeel100 = ftgr_xian 
recode xianfeel100 (-9/-1=.)
sum xianfeel100
egen xianfeel100_std = std(xianfeel100)
replace xianfeel100 = xianfeel100_std
sum xianfeel100
pwcorr ftgr_xian xianfeel100 if ftgr_xian > -1

// 66. SCALE [60-65]: Christian religiosity
alpha relimp2 relpray5 relattend5 bible3 xianfeel100, gen(relALPHA) item min(3) std
* alpha of 0.85
egen relALPHA_std = std(relALPHA)
replace relALPHA = relALPHA_std
sum relALPHA

// 67. Negative ratings on an atheist feeling thermometer
tab ftgr_atheists
gen atheistfeel100 = ftgr_atheists
recode atheistfeel100 (-9/-1=.)
sum atheistfeel100
replace atheistfeel100 = 100 - atheistfeel100
egen atheistfeel100_std = std(atheistfeel100)
replace atheistfeel100 = atheistfeel100_std
sum atheistfeel100
pwcorr ftgr_atheists atheistfeel100 if ftgr_atheists > -1

// 68. Evangelical [0/1]
tab relig_bornagn 
gen bornagain2 = relig_bornagn 
recode bornagain2 (-9/-1=.) (2=0)
tab bornagain2
tab relig_bornagn bornagain2, mi

// 69. Iran trying to develop nuclear weapons [0/1]
tab iran_nukdev 
gen irannuke2 = iran_nukdev 
recode irannuke2 (-9/-1=.) (2=0)
tab irannuke2 
tab iran_nukdev irannuke2, mi

// 70. Oppose direct diplomatic talks with Iran
tab iran_nukdip 
gen irandipl3 = iran_nukdip 
recode irandipl3 (-9/-1=.) (2=1) (3=0) (1=-1)
egen irandipl3_std = std(irandipl3)
replace irandipl3 = irandipl3_std
sum irandipl3
tab iran_nukdip irandipl3, mi

// 71. Increase sanctions on Iran
tab iran_nuksanct 
gen iransanct3 = iran_nuksanct 
recode iransanct3 (-9/-1=.) (2=-1) (3=0)
egen iransanct3_std = std(iransanct3)
replace iransanct3 = iransanct3_std
sum iransanct3 
tab iran_nuksanct iransanct3, mi

// 72. Bomb nuclear development sites in Iran
tab iran_nuksite
gen iranbomb3 = iran_nuksite
recode iranbomb3 (-9/-1=.) (2=-1) (3=0)
egen iranbomb3_std = std(iranbomb3)
replace iranbomb3 = iranbomb3_std
sum iranbomb3
tab iran_nuksite iranbomb3, mi

// 73. Invade Iran with U.S. troops
tab iran_nukeinvd
gen iraninvade3 = iran_nukeinvd
recode iraninvade3 (-9/-1=.) (2=-1) (3=0)
egen iraninvade3_std = std(iraninvade3)
replace iraninvade3 = iraninvade3_std
sum iraninvade3
tab iran_nukeinvd iraninvade3, mi

// X. No Iran scale
alpha irannuke2 irandipl3 iransanct3 iranbomb3 iraninvade3, gen(iranALPHA) item min(3) std
* alpha of 0.37

// 74. China's economic expansion is bad for U.S.
tab china_econ 
gen chinaecon3 = china_econ 
recode chinaecon3 (-9/-1=.) (2=1) (3=0) (1=-1)
egen chinaecon3_std = std(chinaecon3)
replace chinaecon3 = chinaecon3_std
sum chinaecon3
tab china_econ chinaecon3, mi

// 75.	China is a major military threat
tab china_mil 
gen chinamil3 = china_mil
recode chinamil3 (-9/-1=.)
replace chinamil3 = 3 - chinamil3
egen chinamil3_std = std(chinamil3)
replace chinamil3 = chinamil3_std
sum chinamil3
tab china_mil chinamil3, mi

// X. No China scale
pwcorr chinaecon3 chinamil3
alpha chinaecon3 chinamil3, gen(chinaALPHA) item min(2)
* alpha of 0.38

*******************************************************************************************************************************
*** Control variables
*******************************************************************************************************************************

// Sex
tab gender_respondent
tab gender_respondent, nol
gen female = gender_respondent - 1
tab female
tab gender_respondent female, mi

// Married
tab dem_marital 
gen married = dem_marital 
recode married (-9/-1 = .) (1 2 3 4 5 = 1) (6 = 0)
tab married
tab dem_marital married, mi

// Age group
tab dem_agegrp_iwdate
gen agegroup = dem_agegrp_iwdate
recode agegroup (-9/-1 = .)
tab agegroup
sum agegroup
egen agegroup_std = std(agegroup)
replace agegroup = agegroup_std
sum agegroup
tab dem_agegrp_iwdate agegroup, mi

// Education
tab dem_edugroup 
gen educ = dem_edugroup 
recode educ (-9/-1 = .)
tab educ
sum educ
egen educ_std = std(educ)
replace educ = educ_std
sum educ
tab dem_edugroup educ, mi

// Family income
tab incgroup_prep
gen hhincome = incgroup_prep
recode hhincome (-9/-1 = .)
egen hhincome_std = std(hhincome)
replace hhincome = hhincome_std
sum hhincome
tab incgroup_prep hhincome, mi

// Employment status
tab dem_emptype_unemp 
gen unemp = dem_emptype_unemp 
recode unemp (-9/-1 = .)
tab unemp
tab dem_emptype_unemp unemp, mi

// Post: Republican Party
tab pid_self 
gen gop = pid_self 
recode gop (-9 = .) (1 = 0) (2 = 1) (-8 0 3 5 = 0)
tab gop
tab pid_self gop, mi

// Post: Democratic Party
tab pid_self 
gen dem = pid_self 
recode dem (-9 = .) (1 = 1) (2 = 0) (-8 0 3 5 = 0)
tab dem
tab pid_self dem, mi

// Post: Ideology
tab libcpre_self
gen consv = libcpre_self
recode consv (-9 = .) (-8 -2 = 4)
egen consv_std = std(consv)
replace consv = consv_std
sum consv
tab libcpre_self consv, mi

// Self-reliance
tab guarpr_self 
gen jobguar = guarpr_self 
recode jobguar (-9 = .) (-8 -2 = 4)
egen jobguar_std = std(jobguar)
replace jobguar = jobguar_std
sum jobguar
tab guarpr_self jobguar, mi

// Role of government
tab govrole_big 
gen govt1 = govrole_big 
recode govt1 (-9/-1 = .)
replace govt1 = 2 - govt1
tab govt1

tab govrole_market 
gen govt2 = govrole_market 
recode govt2 (-9/-1 = .)
replace govt2 = govt2 - 1
tab govt2

tab govrole_lessmore
gen govt3 = govrole_lessmore 
recode govt3 (-9/-1 = .)
replace govt3 = 2 - govt3
tab govt3

tab govrole_regbus
gen govt4 = govrole_regbus
recode govt4 (-9/-1 = .)
tab govt4

alpha govt1 govt2 govt3 govt4, gen(govtALPHA) item min(3) std
sum govtALPHA
egen govtALPHA_std = std(govtALPHA)
replace govtALPHA = govtALPHA_std
sum govtALPHA

gen govtSCALE = govt1 + govt2 + govt3 + govt4
pwcorr govtSCALE govtALPHA, sig obs

// Moral traditionalism
tab trad_adjust 
gen trad1 = trad_adjust 
recode trad1 (-9 -7 -6 = .) (-8 = 3)
replace trad1 = trad1 - 3
tab trad1

tab trad_lifestyle 
gen trad2 = trad_lifestyle 
recode trad2 (-9 -7 -6 = .) (-8 = 3)
replace trad2 = 3 - trad2
tab trad2

tab trad_tolerant
gen trad3 = trad_tolerant 
recode trad3 (-9 -7 -6 = .) (-8 = 3)
replace trad3 = trad3 - 3
tab trad3

tab trad_famval 
gen trad4 = trad_famval 
recode trad4 (-9 -7 -6 = .) (-8 = 3)
replace trad4 = 3 - trad4
tab trad4

alpha trad1 trad2 trad3 trad4, gen(tradALPHA) item min(3) std
sum tradALPHA
egen tradALPHA_std = std(tradALPHA)
replace tradALPHA = tradALPHA_std
sum tradALPHA

gen tradSCALE = trad1 + trad2 + trad3 + trad4
pwcorr tradSCALE tradALPHA, sig obs

// Authoritarianism
tab auth_ind 
gen auth1 = auth_ind 
recode auth1 (-9/-1 = .) (1 = -1) (3/4 = 0) (2 = 1)
tab auth1

tab auth_cur
gen auth2 = auth_cur
recode auth2 (-9/-1 = .) (1 = -1) (3/4 = 0) (2 = 1)
tab auth2

tab auth_obed 
gen auth3 = auth_obed 
recode auth3 (-9/-1 = .) (1 = 1) (3/4 = 0) (2 = -1)
tab auth3

tab auth_consid 
gen auth4 = auth_consid 
recode auth4 (-9/-1 = .) (1 = -1) (3/4 = 0) (2 = 1)
tab auth4

alpha auth1 auth2 auth3 auth4, gen(authALPHA) item min(3) std
sum authALPHA
egen authALPHA_std = std(authALPHA)
replace authALPHA = authALPHA_std
sum authALPHA

gen authSCALE = auth1 + auth2 + auth3 + auth4
pwcorr authSCALE authALPHA, sig obs

// Egalitarianism
tab egal_equal
gen egal1 = egal_equal
recode egal1 (-9 -7 -6 = .) (-8 = 3)
replace egal1 = 3 - egal1
tab egal1

tab egal_toofar 
gen egal2 = egal_toofar 
recode egal2 (-9 -7 -6 = .) (-8 = 3)
replace egal2 = egal2 - 3
tab egal2

tab egal_bigprob 
gen egal3 = egal_bigprob 
recode egal3 (-9 -7 -6 = .) (-8 = 3)
replace egal3 = 3 - egal3
tab egal3

tab egal_worryless
gen egal4 = egal_worryless
recode egal4 (-9 -7 -6 = .) (-8 = 3)
replace egal4 = egal4 - 3
tab egal4

tab egal_notbigprob
gen egal5 = egal_notbigprob 
recode egal5 (-9 -7 -6 = .) (-8 = 3)
replace egal5 = egal5 - 3
tab egal5

tab egal_fewerprobs
gen egal6 = egal_fewerprobs
recode egal6 (-9 -7 -6 = .) (-8 = 3)
replace egal6 = 3 - egal6 
tab egal6

alpha egal1 egal2 egal3 egal4 egal5 egal6, gen(egalALPHA) item min(4) std
sum egalALPHA
egen egalALPHA_std = std(egalALPHA)
replace egalALPHA = egalALPHA_std
sum egalALPHA

gen egalSCALE = egal1 + egal2 + egal3 + egal4 + egal5 + egal6
pwcorr egalSCALE egalALPHA, sig obs

*******************************************************************************************************************************
*** Check for standardization
*******************************************************************************************************************************
sum oppblackpref4 oppaactionuniv7 oppaactionwork7 oppfairjobblacks4 oppaidblacks7 blscale

sum gayjob4 gaymarry3 gaymil4 gayadopt2 gayfeel100 gayALPHA abort4 abfatal9 abrape9 abdefect9 abincest9 abhealth9 abmoney9 absex9 /// 
abchoice9 abortALPHA femfeel100 fembond7 femwork7 fempres7 modsexdiscrim5 modsexmedia7 modsexspecial5 modsexhiring5 ///
modsexcomplain5 modsexoppor7 femALPHA envjobs7 envspend3 nuclear3 gwarm2 gwarmgood3 gwarmhuman3 enviroALPHA defred7 ///
defimp5 def250k3 defvoucher3 defcorptax3 defmil3 deffedemp3 defnomil3 taxmil7 outsource5 ssstock7 cflimit3 cfads3 defspend7 feelmil100 ///
warworth2 warterror3 wiretap3 wiretaptoo3 protorture7 patflag5 patlove5 patimpt5 patALPHA relimp2 relguide3 relpray5 relattend5 ///
bible3 relALPHA bornagain2 xianfeel100 atheistfeel100 irannuke2 irandipl3 iransanct3 iranbomb3 iraninvade3 chinaecon3 chinamil3

sum rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

*******************************************************************************************************************************
*** Table 1. Regressions for dependent variables that ARE explicitly racial
*******************************************************************************************************************************
svyset [pweight=weight_full], strata(strata_full) psu(psu_full)

svy, subpop(white): reg oppblackpref4     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg oppaactionuniv7   rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg oppaactionwork7   rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg oppfairjobblacks4 rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg oppaidblacks7     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg blscale           rresent female married agegroup educ hhincome unemp 

svy, subpop(white): reg oppblackpref4     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg oppaactionuniv7   rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg oppaactionwork7   rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg oppfairjobblacks4 rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg oppaidblacks7     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg blscale           rresent female married agegroup educ hhincome unemp gop dem consv jobguar

svy, subpop(white): reg oppblackpref4     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg oppaactionuniv7   rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg oppaactionwork7   rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg oppfairjobblacks4 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg oppaidblacks7     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg blscale           rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

*******************************************************************************************************************************
*** Tables 2, 3, 4. Regressions for dependent variables that are NOT explicitly racial
*******************************************************************************************************************************
svyset [pweight=weight_full], strata(strata_full) psu(psu_full)

svy, subpop(white): reg gayjob4         rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg gaymil4         rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg gaymarry3       rresent female married agegroup educ hhincome unemp 
svy, subpop(white): logit gayadopt2     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg gayfeel100      rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg gayALPHA        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg femfeel100      rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg fembond7        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg femwork7        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg fempres7        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg modsexdiscrim5  rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg modsexmedia7    rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg modsexspecial5  rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg modsexhiring5   rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg modsexcomplain5 rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg modsexoppor7    rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg femALPHA        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg atheistfeel100  rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg patflag5        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg patlove5        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg patimpt5        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg patALPHA        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg feelmil100      rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg defspend7       rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg wiretap3        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg wiretaptoo3     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg protorture7     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): logit warworth2     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg warterror3      rresent female married agegroup educ hhincome unemp 
svy, subpop(white): logit irannuke2     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg irandipl3       rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg iransanct3      rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg iranbomb3       rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg iraninvade3     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg chinaecon3      rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg chinamil3       rresent female married agegroup educ hhincome unemp 
svy, subpop(white): logit relimp2       rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg relpray5        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg relattend5      rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg bible3          rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg xianfeel100     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg relALPHA        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg relguide3       rresent female married agegroup educ hhincome unemp 
svy, subpop(white): logit bornagain2    rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg abort4          rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg abfatal9        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg abrape9         rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg abdefect9       rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg abincest9       rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg abhealth9       rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg abmoney9        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg absex9          rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg abchoice9       rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg abortALPHA      rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg envjobs7        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg envspend3       rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg nuclear3        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): logit gwarm2        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg gwarmgood3      rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg gwarmhuman3     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg enviroALPHA     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg defred7         rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg defimp5         rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg def250k3        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg defvoucher3     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg defcorptax3     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg defmil3         rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg deffedemp3      rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg defnomil3       rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg taxmil7         rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg outsource5      rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg ssstock7        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg fiscalALPHA     rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg cflimit3        rresent female married agegroup educ hhincome unemp 
svy, subpop(white): reg cfads3          rresent female married agegroup educ hhincome unemp 

svy, subpop(white): reg gayjob4         rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg gaymil4         rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg gaymarry3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): logit gayadopt2     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg gayfeel100      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg gayALPHA        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg femfeel100      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg fembond7        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg femwork7        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg fempres7        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg modsexdiscrim5  rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg modsexmedia7    rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg modsexspecial5  rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg modsexhiring5   rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg modsexcomplain5 rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg modsexoppor7    rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg femALPHA        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg atheistfeel100  rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg patflag5        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg patlove5        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg patimpt5        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg patALPHA        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg feelmil100      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defspend7       rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg wiretap3        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg wiretaptoo3     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg protorture7     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): logit warworth2     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg warterror3      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): logit irannuke2     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg irandipl3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg iransanct3      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg iranbomb3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg iraninvade3     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg chinaecon3      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg chinamil3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): logit relimp2       rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg relpray5        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg relattend5      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg bible3          rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg xianfeel100     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg relALPHA        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg relguide3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): logit bornagain2    rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abort4          rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abfatal9        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abrape9         rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abdefect9       rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abincest9       rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abhealth9       rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abmoney9        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg absex9          rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abchoice9       rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abortALPHA      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg envjobs7        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg envspend3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg nuclear3        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): logit gwarm2        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg gwarmgood3      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg gwarmhuman3     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg enviroALPHA     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defred7         rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defimp5         rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg def250k3        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defvoucher3     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defcorptax3     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defmil3         rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg deffedemp3      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defnomil3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg taxmil7         rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg outsource5      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg ssstock7        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg fiscalALPHA     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg cflimit3        rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg cfads3          rresent female married agegroup educ hhincome unemp gop dem consv jobguar

svy, subpop(white): reg gayjob4         rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg gaymil4         rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg gaymarry3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): logit gayadopt2     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg gayfeel100      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg gayALPHA        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg femfeel100      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg fembond7        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg femwork7        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg fempres7        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg modsexdiscrim5  rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg modsexmedia7    rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg modsexspecial5  rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg modsexhiring5   rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg modsexcomplain5 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg modsexoppor7    rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg femALPHA        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg atheistfeel100  rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg patflag5        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg patlove5        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg patimpt5        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg patALPHA        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg feelmil100      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defspend7       rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg wiretap3        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg wiretaptoo3     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg protorture7     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): logit warworth2     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg warterror3      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): logit irannuke2     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg irandipl3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg iransanct3      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg iranbomb3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg iraninvade3     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg chinaecon3      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg chinamil3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): logit relimp2       rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg relpray5        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg relattend5      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg bible3          rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg xianfeel100     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg relALPHA        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg relguide3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): logit bornagain2    rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abort4          rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abfatal9        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abrape9         rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abdefect9       rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abincest9       rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abhealth9       rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abmoney9        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg absex9          rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abchoice9       rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abortALPHA      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg envjobs7        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg envspend3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg nuclear3        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): logit gwarm2        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg gwarmgood3      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg gwarmhuman3     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg enviroALPHA     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defred7         rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defimp5         rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg def250k3        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defvoucher3     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defcorptax3     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defmil3         rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg deffedemp3      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defnomil3       rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg taxmil7         rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg outsource5      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg ssstock7        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg fiscalALPHA     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg cflimit3        rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg cfads3          rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

*******************************************************************************************************************************
*** Table 5. [Replace symbolic racism with thermometer ratings] regressions for dependent variables that are NOT explicitly racial
*******************************************************************************************************************************

tab1 ftcasi_black ftcasi_white
recode ftcasi_black ftcasi_white (-9 -8=.)
sum ftcasi_black ftcasi_white
gen thermoWB = ftcasi_white - ftcasi_black
sum thermoWB
egen thermoWB_std = std(thermoWB)
replace thermoWB = thermoWB_std
sum thermoWB

svyset [pweight=weight_full], strata(strata_full) psu(psu_full)

svy, subpop(white): reg gayjob4         thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg gaymil4         thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg gaymarry3       thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): logit gayadopt2     thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg gayfeel100      thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg gayALPHA        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg femfeel100      thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg fembond7        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg femwork7        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg fempres7        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg modsexdiscrim5  thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg modsexmedia7    thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg modsexspecial5  thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg modsexhiring5   thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg modsexcomplain5 thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg modsexoppor7    thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg femALPHA        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg atheistfeel100  thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg patflag5        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg patlove5        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg patimpt5        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg patALPHA        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg feelmil100      thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg defspend7       thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg wiretap3        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg wiretaptoo3     thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg protorture7     thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): logit warworth2     thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg warterror3      thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): logit irannuke2     thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg irandipl3       thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg iransanct3      thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg iranbomb3       thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg iraninvade3     thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg chinaecon3      thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg chinamil3       thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): logit relimp2       thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg relpray5        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg relattend5      thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg bible3          thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg xianfeel100     thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg relALPHA        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg relguide3       thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): logit bornagain2    thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg abort4          thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg abfatal9        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg abrape9         thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg abdefect9       thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg abincest9       thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg abhealth9       thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg abmoney9        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg absex9          thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg abchoice9       thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg abortALPHA      thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg envjobs7        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg envspend3       thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg nuclear3        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): logit gwarm2        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg gwarmgood3      thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg gwarmhuman3     thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg enviroALPHA     thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg defred7         thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg defimp5         thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg def250k3        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg defvoucher3     thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg defcorptax3     thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg defmil3         thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg deffedemp3      thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg defnomil3       thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg taxmil7         thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg outsource5      thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg ssstock7        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg fiscalALPHA     thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg cflimit3        thermoWB female married agegroup educ hhincome unemp 
svy, subpop(white): reg cfads3          thermoWB female married agegroup educ hhincome unemp 

svy, subpop(white): reg gayjob4         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg gaymil4         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg gaymarry3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): logit gayadopt2     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg gayfeel100      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg gayALPHA        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg femfeel100      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg fembond7        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg femwork7        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg fempres7        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg modsexdiscrim5  thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg modsexmedia7    thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg modsexspecial5  thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg modsexhiring5   thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg modsexcomplain5 thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg modsexoppor7    thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg femALPHA        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg atheistfeel100  thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg patflag5        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg patlove5        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg patimpt5        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg patALPHA        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg feelmil100      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defspend7       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg wiretap3        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg wiretaptoo3     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg protorture7     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): logit warworth2     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg warterror3      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): logit irannuke2     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg irandipl3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg iransanct3      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg iranbomb3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg iraninvade3     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg chinaecon3      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg chinamil3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): logit relimp2       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg relpray5        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg relattend5      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg bible3          thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg xianfeel100     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg relALPHA        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg relguide3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): logit bornagain2    thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abort4          thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abfatal9        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abrape9         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abdefect9       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abincest9       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abhealth9       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abmoney9        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg absex9          thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abchoice9       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg abortALPHA      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg envjobs7        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg envspend3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg nuclear3        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): logit gwarm2        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg gwarmgood3      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg gwarmhuman3     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg enviroALPHA     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defred7         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defimp5         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg def250k3        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defvoucher3     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defcorptax3     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defmil3         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg deffedemp3      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg defnomil3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg taxmil7         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg outsource5      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg ssstock7        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg fiscalALPHA     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg cflimit3        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg cfads3          thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar

svy, subpop(white): reg gayjob4         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg gaymil4         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg gaymarry3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): logit gayadopt2     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg gayfeel100      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg gayALPHA        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg femfeel100      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg fembond7        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg femwork7        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg fempres7        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg modsexdiscrim5  thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg modsexmedia7    thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg modsexspecial5  thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg modsexhiring5   thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg modsexcomplain5 thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg modsexoppor7    thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg femALPHA        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg atheistfeel100  thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg patflag5        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg patlove5        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg patimpt5        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg patALPHA        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg feelmil100      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defspend7       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg wiretap3        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg wiretaptoo3     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg protorture7     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): logit warworth2     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg warterror3      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): logit irannuke2     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg irandipl3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg iransanct3      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg iranbomb3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg iraninvade3     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg chinaecon3      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg chinamil3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): logit relimp2       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg relpray5        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg relattend5      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg bible3          thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg xianfeel100     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg relALPHA        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg relguide3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): logit bornagain2    thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abort4          thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abfatal9        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abrape9         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abdefect9       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abincest9       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abhealth9       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abmoney9        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg absex9          thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abchoice9       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg abortALPHA      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg envjobs7        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg envspend3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg nuclear3        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): logit gwarm2        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg gwarmgood3      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg gwarmhuman3     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg enviroALPHA     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defred7         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defimp5         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg def250k3        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defvoucher3     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defcorptax3     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defmil3         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg deffedemp3      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg defnomil3       thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg taxmil7         thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg outsource5      thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg ssstock7        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg fiscalALPHA     thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg cflimit3        thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg cfads3          thermoWB female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

*******************************************************************************************************************************
*** Test against dependent variables related to race
*******************************************************************************************************************************

// support for capital punishment
tab penalty_favopp_x
gen cappun4 = penalty_favopp_x
recode cappun4 (-9 -8=.) (5=0) (4=1) (2=2) (1=3)
tab cappun4
egen cappun_std = std(cappun4)
replace cappun4 = cappun_std
tab penalty_favopp_x cappun4
sum cappun4

// opposition to immigration
tab1 immig*
gen imm_policy = immig_policy
gen imm_citizen = immig_citizen
gen imm_suspect = immig_checks
gen imm_level = immigpo_level
gen imm_jobs = immigpo_jobs
gen imm_thermo = ftcasi_illegal
recode imm_citizen imm_suspect (3=1.5)
recode imm_policy imm_citizen imm_suspect imm_level imm_jobs imm_thermo (-9/-1=.)
tab1 imm_policy imm_citizen imm_suspect imm_level imm_jobs imm_thermo
alpha imm_policy imm_citizen imm_suspect imm_level imm_jobs imm_thermo, gen(immALPHA) item min(4) std
egen immALPHA_std = std(immALPHA)
replace immALPHA = 0-immALPHA_std
sum immALPHA

// oppose health care law
tab health_2010hcr_x
gen opposeHCare = health_2010hcr_x
recode opposeHCare (-9/-1=.)
egen opposeHCare_std = std(opposeHCare)
replace opposeHCare = opposeHCare_std
tab health_2010hcr_x opposeHCare
sum opposeHCare

// decrease spending on the poor
tab fedspend_welfare
gen less_welfare = fedspend_welfare
recode less_welfare (-9/-1=.) (3=1.5)
egen less_welfare_std = std(less_welfare)
replace less_welfare = less_welfare_std
tab fedspend_welfare less_welfare
sum less_welfare

tab fedspend_crime
gen more_crime = fedspend_crime
recode more_crime (-9/-1=.) (3=1.5) (1=2) (2=1)
egen more_crime_std = std(more_crime)
replace more_crime = more_crime_std
sum more_crime
tab fedspend_crime more_crime

tab fedspend_poor
gen less_poor = fedspend_poor
recode less_poor (-9/-1=.) (3=1.5)
egen less_poor_std = std(less_poor)
replace less_poor = less_poor_std
sum less_poor
tab fedspend_poor less_poor

alpha less_welfare more_crime less_poor, item min(2) std // crime did not correlate highly, so it was dropped

alpha less_welfare less_poor, gen(spendALPHA) item min(2) std
egen spendALPHA_std = std(spendALPHA)
replace spendALPHA = spendALPHA_std
sum spendALPHA

// increase spending on fighting crime
tab fedspend_crime more_crime
sum more_crime

// tea party support
tab tea_supp_x
gen tp_sup = tea_supp_x
recode tp_sup (-9 -8=.)
replace tp_sup = 4 - tp_sup
tab tp_sup
tab ftgr_tea
gen tp_thermo = ftgr_tea
recode tp_thermo (-9 -8 -2=.)
sum tp_thermo
alpha tp_sup tp_thermo, gen(tpALPHA) item min(2) std
egen tpALPHA_std = std(tpALPHA)
replace tpALPHA = tpALPHA_std
sum tpALPHA
pwcorr tp_sup tp_thermo tpALPHA

// less strict gun laws
tab gun_control
gen gun3 = gun_control
recode gun3 (-9 -8=.) (3=0) (1=-1) (2=1)
tab gun3
egen gun3_std = std(gun3)
replace gun3 = gun3_std
sum gun3
tab gun_control gun3

// presidential disapproval
tab1 presapp*
gen pdisapp_job = presapp_job_x
gen pdisapp_econ = presapp_econ_x
gen pdisapp_foreign = presapp_foreign_x
gen pdisapp_health = presapp_health_x
gen pdisapp_war = presapp_war_x
recode pdisapp_job pdisapp_econ pdisapp_foreign pdisapp_health pdisapp_war (-9/-1=.) (4=3) (5=4)
sum pdisapp_job pdisapp_econ pdisapp_foreign pdisapp_health pdisapp_war 
tab1 pdisapp_job pdisapp_econ pdisapp_foreign pdisapp_health pdisapp_war
alpha pdisapp_job pdisapp_econ pdisapp_foreign pdisapp_health pdisapp_war, gen(disappALPHA) item min(3) std
egen disappALPHA_std = std(disappALPHA)
replace disappALPHA = disappALPHA_std
sum disappALPHA

// dem president candidate thermo
tab ft_dpc
gen pdem_thermo = ft_dpc
recode pdem_thermo (-9/-1=.)
sum pdem_thermo
egen pdem_thermo_std = std(pdem_thermo)
replace pdem_thermo = pdem_thermo_std
sum pdem_thermo

// obama not born in the US
tab nonmain_born
gen obamaborn = nonmain_born
recode obamaborn (-9 -8=.)
egen obamaborn_std = std(obamaborn)
replace obamaborn = obamaborn_std
tab nonmain_born obamaborn
sum obamaborn

// aca death panels
tab nonmain_endlife
gen dpanels = nonmain_endlife
recode dpanels (-9 -8=.)
egen dpanels_std = std(dpanels)
replace dpanels = 0 - dpanels_std
sum dpanels
tab nonmain_endlife dpanels

// administration favor blacks
tab nonmain_bias
gen adfavorbl = nonmain_bias
recode adfavorbl (-9 -8=.) (3=1.5)
egen adfavorbl_std = std(adfavorbl)
replace adfavorbl = adfavorbl_std
sum adfavorbl
tab nonmain_bias adfavorbl

* check to make sure dvars are standardized
sum cappun4 immALPHA opposeHCare spendALPHA more_crime tpALPHA gun3 disappALPHA pdem_thermo obamaborn dpanels adfavorbl

svy, subpop(white): reg cappun4      rresent female married agegroup educ hhincome unemp
svy, subpop(white): reg cappun4      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg cappun4      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

svy, subpop(white): reg immALPHA     rresent female married agegroup educ hhincome unemp
svy, subpop(white): reg immALPHA     rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg immALPHA     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

svy, subpop(white): reg opposeHCare  rresent female married agegroup educ hhincome unemp
svy, subpop(white): reg opposeHCare  rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg opposeHCare  rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

svy, subpop(white): reg more_crime   rresent female married agegroup educ hhincome unemp
svy, subpop(white): reg more_crime   rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg more_crime   rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

svy, subpop(white): reg spendALPHA   rresent female married agegroup educ hhincome unemp
svy, subpop(white): reg spendALPHA   rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg spendALPHA   rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

svy, subpop(white): reg gun3         rresent female married agegroup educ hhincome unemp
svy, subpop(white): reg gun3         rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg gun3         rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

svy, subpop(white): reg tpALPHA      rresent female married agegroup educ hhincome unemp
svy, subpop(white): reg tpALPHA      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg tpALPHA      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

svy, subpop(white): reg disappALPHA  rresent female married agegroup educ hhincome unemp
svy, subpop(white): reg disappALPHA  rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg disappALPHA  rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

svy, subpop(white): reg pdem_thermo  rresent female married agegroup educ hhincome unemp
svy, subpop(white): reg pdem_thermo  rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg pdem_thermo  rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

svy, subpop(white): reg obamaborn    rresent female married agegroup educ hhincome unemp
svy, subpop(white): reg obamaborn    rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg obamaborn    rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

svy, subpop(white): reg dpanels      rresent female married agegroup educ hhincome unemp
svy, subpop(white): reg dpanels      rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg dpanels      rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

svy, subpop(white): reg adfavorbl    rresent female married agegroup educ hhincome unemp
svy, subpop(white): reg adfavorbl    rresent female married agegroup educ hhincome unemp gop dem consv jobguar
svy, subpop(white): reg adfavorbl    rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

*******************************************************************************************************************************
*** Supplemental information. Transformed for dichotomous dependent variable analysis
*******************************************************************************************************************************
svyset [pweight=weight_full], strata(strata_full) psu(psu_full)

tab gayjob4 
gen gayjob2 = gayjob4
replace gayjob2 = 0 if gayjob4 < 0.1
replace gayjob2 = 1 if gayjob4 > 0.1
replace gayjob2 = . if gayjob4 == .
tab gayjob4 gayjob2, mi

svy, subpop(white): logit gayjob2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit gayjob2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit gayjob2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab gaymil4
gen gaymil2 = gaymil4
replace gaymil2 = 0 if gaymil4 < 1
replace gaymil2 = 1 if gaymil4 > 1
replace gaymil2 = . if gaymil4 == .
tab gaymil4 gaymil2, mi

svy, subpop(white): logit gaymil2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit gaymil2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit gaymil2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab gaymarry3
gen gaymarry2 = gaymarry3
replace gaymarry2 = 0 if gaymarry3 < 1
replace gaymarry2 = 1 if gaymarry3 > 1
replace gaymarry2 = . if gaymarry3 == .
tab gaymarry3 gaymarry2, mi

svy, subpop(white): logit gaymarry2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit gaymarry2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit gaymarry2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

svy, subpop(white): logit gayadopt2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit gayadopt2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit gayadopt2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab gayfeel100
gen gayfeel2 = gayfeel100
replace gayfeel2 = 0 if gayfeel100 < 0.06
replace gayfeel2 = 1 if gayfeel100 > 0.06
replace gayfeel2 = . if gayfeel100 == .
tab gayfeel100 gayfeel2, mi

svy, subpop(white): logit gayfeel2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit gayfeel2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit gayfeel2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

sum gayALPHA
gen gayALPHA2 = gayALPHA
replace gayALPHA2 = 0 if gayALPHA <= 0
replace gayALPHA2 = 1 if gayALPHA > 0
replace gayALPHA2 = . if gayALPHA == .
tab gayALPHA gayALPHA2, mi

svy, subpop(white): logit gayALPHA2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit gayALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit gayALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab ftgr_feminists 
tab femfeel100
gen femfeel2 = femfeel100
replace femfeel2 = 0 if femfeel100 < -0.05
replace femfeel2 = 1 if femfeel100 > -0.05
replace femfeel2 = . if femfeel100 == .
tab femfeel100 femfeel2, mi

svy, subpop(white): logit femfeel2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit femfeel2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit femfeel2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab fembond7
gen fembond2 = fembond7
replace fembond2 = 0 if fembond7 < -0.5
replace fembond2 = 1 if fembond7 > -0.5
replace fembond2 = . if fembond7 == .
tab fembond7 fembond2, mi

svy, subpop(white): logit fembond2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit fembond2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit fembond2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab femwork7
gen femwork2 = femwork7
replace femwork2 = 0 if femwork7 < -0.5
replace femwork2 = 1 if femwork7 > -0.5
replace femwork2 = . if femwork7 == .
tab femwork7 femwork2, mi

svy, subpop(white): logit femwork2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit femwork2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit femwork2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab fempres7
gen fempres2 = fempres7
replace fempres2 = 0 if fempres7 < 1
replace fempres2 = 1 if fempres7 > 1
replace fempres2 = . if fempres7 == .
tab fempres7 fempres2, mi

svy, subpop(white): logit fempres2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit fempres2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit fempres2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab modsexdiscrim5
gen modsexdiscrim2 = modsexdiscrim5
replace modsexdiscrim2 = 0 if modsexdiscrim5 < 0
replace modsexdiscrim2 = 1 if modsexdiscrim5 > 0
replace modsexdiscrim2 = . if modsexdiscrim5 == .
tab modsexdiscrim5 modsexdiscrim2, mi

svy, subpop(white): logit modsexdiscrim2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit modsexdiscrim2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit modsexdiscrim2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab modsexmedia7
gen modsexmedia2 = modsexmedia7
replace modsexmedia2 = 0 if modsexmedia7 < .5
replace modsexmedia2 = 1 if modsexmedia7 > .5
replace modsexmedia2 = . if modsexmedia7 == .
tab modsexmedia7 modsexmedia2, mi

svy, subpop(white): logit modsexmedia2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit modsexmedia2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit modsexmedia2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab modsexspecial5
gen modsexspecial2 = modsexspecial5
replace modsexspecial2 = 0 if modsexspecial5 < 1
replace modsexspecial2 = 1 if modsexspecial5 > 1
replace modsexspecial2 = . if modsexspecial5 == .
tab modsexspecial5 modsexspecial2, mi

svy, subpop(white): logit modsexspecial2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit modsexspecial2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit modsexspecial2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab modsexhiring5
gen modsexhiring2 = modsexhiring5
replace modsexhiring2 = 0 if modsexhiring5 < 0
replace modsexhiring2 = 1 if modsexhiring5 > 0
replace modsexhiring2 = . if modsexhiring5 == .
tab modsexhiring5 modsexhiring2, mi

svy, subpop(white): logit modsexhiring2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit modsexhiring2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit modsexhiring2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab modsexcomplain5
gen modsexcomplain2 = modsexcomplain5
replace modsexcomplain2 = 0 if modsexcomplain5 < 1
replace modsexcomplain2 = 1 if modsexcomplain5 > 1
replace modsexcomplain2 = . if modsexcomplain5 == .
tab modsexcomplain5 modsexcomplain2, mi

svy, subpop(white): logit modsexcomplain2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit modsexcomplain2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit modsexcomplain2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab modsexoppor7
gen modsexoppor2 = modsexoppor7
replace modsexoppor2 = 0 if modsexoppor7 < 1
replace modsexoppor2 = 1 if modsexoppor7 > 1
replace modsexoppor2 = . if modsexoppor7 == .
tab modsexoppor7 modsexoppor2, mi
 
svy, subpop(white): logit modsexoppor2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit modsexoppor2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit modsexoppor2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

sum femALPHA
gen femALPHA2 = femALPHA 
replace femALPHA2 = 0 if femALPHA <= 0
replace femALPHA2 = 1 if femALPHA > 0
replace femALPHA2 = . if femALPHA == .
tab femALPHA2
sum femALPHA if femALPHA2 == 0
sum femALPHA if femALPHA2 == 1
sum femALPHA if femALPHA2 == .

svy, subpop(white): logit femALPHA2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit femALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit femALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab atheistfeel100
gen atheistfeel2 = atheistfeel100
replace atheistfeel2 = 0 if atheistfeel100 < -0.36
replace atheistfeel2 = 1 if atheistfeel100 > -0.36
replace atheistfeel2 = . if atheistfeel100 == .
tab atheistfeel100 atheistfeel2, mi

svy, subpop(white): logit atheistfeel2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit atheistfeel2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit atheistfeel2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab patflag5 
gen patflag2 = patflag5 
replace patflag2 = 0 if patflag5 < -0.5
replace patflag2 = 1 if patflag5 > -0.5
replace patflag2 = . if patflag5 == .
tab patflag5 patflag2, mi

svy, subpop(white): logit patflag2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit patflag2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit patflag2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab patlove5
gen patlove2 = patlove5
replace patlove2 = 0 if patlove5 < -1
replace patlove2 = 1 if patlove5 > -1
replace patlove2 = . if patlove5 == .
tab patlove5 patlove2, mi

svy, subpop(white): logit patlove2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit patlove2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit patlove2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab patimpt5 
gen patimpt2 = patimpt5 
replace patimpt2 = 0 if patimpt5 < -1
replace patimpt2 = 1 if patimpt5 > -1
replace patimpt2 = . if patimpt5 == .
tab patimpt5 patimpt2, mi

svy, subpop(white): logit patimpt2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit patimpt2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit patimpt2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab patALPHA
gen patALPHA2 = patALPHA
replace patALPHA2 = 0 if patALPHA <= 0
replace patALPHA2 = 1 if patALPHA > 0
replace patALPHA2 = . if patALPHA == .
tab patALPHA patALPHA2, mi

svy, subpop(white): logit patALPHA2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit patALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit patALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab ftgr_military
tab feelmil100
gen feelmil2 = feelmil100
replace feelmil2 = 0 if feelmil100 < -1.45
replace feelmil2 = 1 if feelmil100 > -1.45
replace feelmil2 = . if feelmil100 == .
tab ftgr_military feelmil2, mi
 
svy, subpop(white): logit feelmil2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit feelmil2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit feelmil2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab defspend7
gen defspend2 = defspend7
replace defspend2 = 0 if defspend7 < 0
replace defspend2 = 1 if defspend7 > 0
replace defspend2 = . if defspend7 == .
tab defspend7 defspend2, mi

svy, subpop(white): logit defspend2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit defspend2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit defspend2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab wiretap3 
gen wiretap2 = wiretap3
replace wiretap2 = 0 if wiretap3 < 1
replace wiretap2 = 1 if wiretap3 > 1
replace wiretap2 = . if wiretap3 == .
tab wiretap3 wiretap2, mi

svy, subpop(white): logit wiretap2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit wiretap2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit wiretap2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab wiretaptoo3
gen wiretaptoo2 = wiretaptoo3
replace wiretaptoo2 = 0 if wiretaptoo3 < 1
replace wiretaptoo2 = 1 if wiretaptoo3 > 1
replace wiretaptoo2 = . if wiretaptoo3 == .
tab wiretaptoo3 wiretaptoo2, mi

svy, subpop(white): logit wiretaptoo2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit wiretaptoo2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit wiretaptoo2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab protorture7
gen protorture2 = protorture7
replace protorture2 = 0 if protorture7 < 0.5
replace protorture2 = 1 if protorture7 > 0.5
replace protorture2 = . if protorture7 == .
tab protorture7 protorture2, mi

svy, subpop(white): logit protorture2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit protorture2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit protorture2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

svy, subpop(white): logit warworth2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit warworth2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit warworth2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab warterror3
gen warterror2 = warterror3
replace warterror2 = 0 if warterror3 < 1
replace warterror2 = 1 if warterror3 > 1
replace warterror2 = . if warterror3 == .
tab warterror3 warterror2, mi

svy, subpop(white): logit warterror2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit warterror2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit warterror2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

svy, subpop(white): logit irannuke2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit irannuke2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit irannuke2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab irandipl3
gen irandipl2 = irandipl3
replace irandipl2 = 0 if irandipl3 < 1.5
replace irandipl2 = 1 if irandipl3 > 1.5
replace irandipl2 = . if irandipl3 == .
tab irandipl3 irandipl2, mi

svy, subpop(white): logit irandipl2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit irandipl2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit irandipl2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab iransanct3
gen iransanct2 = iransanct3 
replace iransanct2 = 0 if iransanct3 < 0
replace iransanct2 = 1 if iransanct3 > 0
replace iransanct2 = . if iransanct3 == .
tab iransanct3 iransanct2, mi

svy, subpop(white): logit iransanct2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit iransanct2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit iransanct2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab iranbomb3
gen iranbomb2 = iranbomb3
replace iranbomb2 = 0 if iranbomb3 < 1
replace iranbomb2 = 1 if iranbomb3 > 1
replace iranbomb2 = . if iranbomb3 == .
tab iranbomb3 iranbomb2, mi

svy, subpop(white): logit iranbomb2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit iranbomb2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit iranbomb2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab iraninvade3
gen iraninvade2 = iraninvade3
replace iraninvade2 = 0 if iraninvade3 < 1
replace iraninvade2 = 1 if iraninvade3 > 1
replace iraninvade2 = . if iraninvade3 == .
tab iraninvade3 iraninvade2, mi

svy, subpop(white): logit iraninvade2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit iraninvade2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit iraninvade2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab chinaecon3
gen chinaecon2 = chinaecon3
replace chinaecon2 = 0 if chinaecon3 < 0
replace chinaecon2 = 1 if chinaecon3 > 0
replace chinaecon2 = . if chinaecon3 == .
tab chinaecon3 chinaecon2, mi

svy, subpop(white): logit chinaecon2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit chinaecon2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit chinaecon2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab chinamil3
gen chinamil2 = chinamil3
replace chinamil2 = 0 if chinamil3 < 0
replace chinamil2 = 1 if chinamil3 > 0
replace chinamil2 = . if chinamil3 == .
tab chinamil3 chinamil2, mi

svy, subpop(white): logit chinamil2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit chinamil2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit chinamil2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

svy, subpop(white): logit relimp2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit relimp2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit relimp2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab relpray5
gen relpray2 = relpray5
replace relpray2 = 0 if relpray5 < 0
replace relpray2 = 1 if relpray5 > 0
replace relpray2 = . if relpray5 == .
tab relpray5 relpray2, mi

svy, subpop(white): logit relpray2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit relpray2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit relpray2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab relattend5
gen relattend2 = relattend5
replace relattend2 = 0 if relattend5 < 0.5
replace relattend2 = 1 if relattend5 > 0.5
replace relattend2 = . if relattend5 == .
tab relattend5 relattend2, mi

svy, subpop(white): logit relattend2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit relattend2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit relattend2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab bible3 
gen bible2 = bible3
replace bible2 = 0 if bible3 < 1
replace bible2 = 1 if bible3 > 1
replace bible2 = . if bible3 == .
tab bible3 bible2, mi

svy, subpop(white): logit bible2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit bible2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit bible2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab ftgr_xian 
tab xianfeel100
gen xianfeel2 = xianfeel100
replace xianfeel2 = 0 if xianfeel100 < -0.92
replace xianfeel2 = 1 if xianfeel100 > -0.92
replace xianfeel2 = . if xianfeel100 == .
tab xianfeel100 xianfeel2, mi

svy, subpop(white): logit xianfeel2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit xianfeel2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit xianfeel2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab relALPHA
gen relALPHA2 = relALPHA
replace relALPHA2 = 0 if relALPHA <= 0
replace relALPHA2 = 1 if relALPHA > 0
replace relALPHA2 = . if relALPHA == .
tab relALPHA relALPHA2, mi

svy, subpop(white): logit relALPHA2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit relALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit relALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab relguide3 
gen relguide2 = relguide3 
replace relguide2 = 0 if relguide3 < 0
replace relguide2 = 1 if relguide3 > 0
replace relguide2 = . if relguide3 == .
tab relguide3 relguide2, mi

svy, subpop(white): logit relguide2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit relguide2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit relguide2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

svy, subpop(white): logit bornagain2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit bornagain2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit bornagain2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab abort4
gen abort2 = abort4
replace abort2 = 0 if abort4 < 0
replace abort2 = 1 if abort4 > 0
replace abort2 = . if abort4 == .
tab abort4 abort2, mi

svy, subpop(white): logit abort2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit abort2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit abort2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab abfatal9
gen abfatal2 = abfatal9
replace abfatal2 = 0 if abfatal9 < 1.5
replace abfatal2 = 1 if abfatal9 > 1.5
replace abfatal2 = . if abfatal9 == .
tab abfatal9 abfatal2, mi

svy, subpop(white): logit abfatal2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit abfatal2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit abfatal2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab abrape9
gen abrape2 = abrape9
replace abrape2 = 0 if abrape9 < 1
replace abrape2 = 1 if abrape9 > 1
replace abrape2 = . if abrape9 == .
tab abrape9 abrape2, mi

svy, subpop(white): logit abrape2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit abrape2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit abrape2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab abdefect9
gen abdefect2 = abdefect9
replace abdefect2 = 0 if abdefect9 < 0.5
replace abdefect2 = 1 if abdefect9 > 0.5
replace abdefect2 = . if abdefect9 == .
tab abdefect9 abdefect2, mi

svy, subpop(white): logit abdefect2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit abdefect2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit abdefect2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab abincest9
gen abincest2 = abincest9
replace abincest2 = 0 if abincest9 < 0.5
replace abincest2 = 1 if abincest9 > 0.5
replace abincest2 = . if abincest9 == .
tab abincest9 abincest2, mi

svy, subpop(white): logit abincest2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit abincest2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit abincest2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab abhealth9
gen abhealth2 = abhealth9
replace abhealth2 = 0 if abhealth9 < 0.25
replace abhealth2 = 1 if abhealth9 > 0.25
replace abhealth2 = . if abhealth9 == .
tab abhealth9 abhealth2, mi

svy, subpop(white): logit abhealth2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit abhealth2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit abhealth2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab abmoney9
gen abmoney2 = abmoney9
replace abmoney2 = 0 if abmoney9 < -0.2
replace abmoney2 = 1 if abmoney9 > -0.2
replace abmoney2 = . if abmoney9 == .
tab abmoney9 abmoney2, mi

svy, subpop(white): logit abmoney2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit abmoney2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit abmoney2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab absex9
gen absex2 = absex9
replace absex2 = 0 if absex9 < -1
replace absex2 = 1 if absex9 > -1
replace absex2 = . if absex9 == .
tab absex9 absex2, mi

svy, subpop(white): logit absex2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit absex2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit absex2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab abchoice9
gen abchoice2 = abchoice9
replace abchoice2 = 0 if abchoice9 < 0
replace abchoice2 = 1 if abchoice9 > 0
replace abchoice2 = . if abchoice9 == .
tab abchoice9 abchoice2, mi

svy, subpop(white): logit abchoice2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit abchoice2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit abchoice2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab abortALPHA
gen abortALPHA2 = abortALPHA
replace abortALPHA2 = 0 if abortALPHA <= 0
replace abortALPHA2 = 1 if abortALPHA > 0
replace abortALPHA2 = . if abortALPHA == .
sum abortALPHA2
sum abortALPHA if abortALPHA2 == 0
sum abortALPHA if abortALPHA2 == 1
sum abortALPHA if abortALPHA2 == .

svy, subpop(white): logit abortALPHA2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit abortALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit abortALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab envjobs7
gen envjobs2 = envjobs7
replace envjobs2 = 0 if envjobs7 < 0.5
replace envjobs2 = 1 if envjobs7 > 0.5
replace envjobs2 = . if envjobs7 == .
tab envjobs7 envjobs2, mi

svy, subpop(white): logit envjobs2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit envjobs2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit envjobs2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab envspend3
gen envspend2 = envspend3
replace envspend2 = 0 if envspend3 < 1
replace envspend2 = 1 if envspend3 > 1
replace envspend2 = . if envspend3 == .
tab envspend3 envspend2, mi

svy, subpop(white): logit envspend2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit envspend2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit envspend2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab nuclear3 
gen nuclear2 = nuclear3 
replace nuclear2 = 0 if nuclear3 < 0
replace nuclear2 = 1 if nuclear3 > 0
replace nuclear2 = . if nuclear3 == .
tab nuclear3 nuclear2, mi

svy, subpop(white): logit nuclear2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit nuclear2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit nuclear2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

svy, subpop(white): logit gwarm2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit gwarm2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit gwarm2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab gwarmgood3
gen gwarmgood2 = gwarmgood3
replace gwarmgood2 = 0 if gwarmgood3 < 2
replace gwarmgood2 = 1 if gwarmgood3 > 2
replace gwarmgood2 = . if gwarmgood3 == .
tab gwarmgood3 gwarmgood2, mi

svy, subpop(white): logit gwarmgood2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit gwarmgood2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit gwarmgood2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab gwarmhuman3
gen gwarmhuman2 = gwarmhuman3
replace gwarmhuman2 = 0 if gwarmhuman3 < 1
replace gwarmhuman2 = 1 if gwarmhuman3 > 1
replace gwarmhuman2 = . if gwarmhuman3 == .
tab gwarmhuman3 gwarmhuman2, mi

svy, subpop(white): logit gwarmhuman2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit gwarmhuman2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit gwarmhuman2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab enviroALPHA
gen enviroALPHA2 = enviroALPHA
replace enviroALPHA2 = 0 if enviroALPHA <= 0
replace enviroALPHA2 = 1 if enviroALPHA > 0
replace enviroALPHA2 = . if enviroALPHA == .
tab enviroALPHA enviroALPHA2, mi

svy, subpop(white): logit enviroALPHA2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit enviroALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit enviroALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab defred7
gen defred2 = defred7
replace defred2 = 0 if defred7 < -1
replace defred2 = 1 if defred7 > -1
replace defred2 = . if defred7 == .
tab defred7 defred2, mi

svy, subpop(white): logit defred2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit defred2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit defred2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab defimp5
gen defimp2 = defimp5
replace defimp2 = 0 if defimp5 < -1
replace defimp2 = 1 if defimp5 > -1
replace defimp2 = . if defimp5 == .
tab defimp5 defimp2, mi

svy, subpop(white): logit defimp2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit defimp2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit defimp2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab def250k3
gen def250k2 = def250k3
replace def250k2 = 0 if def250k3 < 1
replace def250k2 = 1 if def250k3 > 1
replace def250k2 = . if def250k3 == .
tab def250k3 def250k2, mi

svy, subpop(white): logit def250k2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit def250k2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit def250k2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab defvoucher3
gen defvoucher2 = defvoucher3
replace defvoucher2 = 0 if defvoucher3 < 1
replace defvoucher2 = 1 if defvoucher3 > 1
replace defvoucher2 = . if defvoucher3 == .
tab defvoucher3 defvoucher2, mi

svy, subpop(white): logit defvoucher2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit defvoucher2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit defvoucher2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab defcorptax3
gen defcorptax2 = defcorptax3
replace defcorptax2 = 0 if defcorptax3 < 1
replace defcorptax2 = 1 if defcorptax3 > 1
replace defcorptax2 = . if defcorptax3 == .
tab defcorptax3 defcorptax2, mi

svy, subpop(white): logit defcorptax2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit defcorptax2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit defcorptax2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab defmil3
gen defmil2 = defmil3
replace defmil2 = 0 if defmil3 < 0
replace defmil2 = 1 if defmil3 > 0
replace defmil2 = . if defmil3 == .
tab defmil3 defmil2, mi

svy, subpop(white): logit defmil2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit defmil2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit defmil2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab deffedemp3
gen deffedemp2 = deffedemp3
replace deffedemp2 = 0 if deffedemp3 < 0
replace deffedemp2 = 1 if deffedemp3 > 0
replace deffedemp2 = . if deffedemp3 == .
tab deffedemp3 deffedemp2, mi

svy, subpop(white): logit deffedemp2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit deffedemp2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit deffedemp2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab defnomil3 
gen defnomil2 = defnomil3 
replace defnomil2 = 0 if defnomil3 < 0
replace defnomil2 = 1 if defnomil3 > 0
replace defnomil2 = . if defnomil3 == .
tab defnomil3 defnomil2, mi

svy, subpop(white): logit defnomil2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit defnomil2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit defnomil2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab taxmil7
gen taxmil2 = taxmil7
replace taxmil2 = 0 if taxmil7 < 1
replace taxmil2 = 1 if taxmil7 > 1
replace taxmil2 = . if taxmil7 == .
tab taxmil7 taxmil2, mi

svy, subpop(white): logit taxmil2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit taxmil2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit taxmil2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab outsource5
gen outsource2 = outsource5
replace outsource2 = 0 if outsource5 < 2
replace outsource2 = 1 if outsource5 > 2
replace outsource2 = . if outsource5 == .
tab outsource5 outsource2, mi

svy, subpop(white): logit outsource2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit outsource2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit outsource2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab ssstock7
gen ssstock2 = ssstock7 
replace ssstock2 = 0 if ssstock7 < 0
replace ssstock2 = 1 if ssstock7 > 0
replace ssstock2 = . if ssstock7 == .
tab ssstock7 ssstock2, mi

svy, subpop(white): logit ssstock2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit ssstock2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit ssstock2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab fiscalALPHA
gen fiscalALPHA2 = fiscalALPHA
replace fiscalALPHA2 = 0 if fiscalALPHA <= 0
replace fiscalALPHA2 = 1 if fiscalALPHA > 0
replace fiscalALPHA2 = . if fiscalALPHA == .
sum fiscalALPHA2
sum fiscalALPHA if fiscalALPHA2 == 0
sum fiscalALPHA if fiscalALPHA2 == 1
sum fiscalALPHA if fiscalALPHA2 == .

svy, subpop(white): logit fiscalALPHA2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit fiscalALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit fiscalALPHA2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab cflimit3
gen cflimit2 = cflimit3
replace cflimit2 = 0 if cflimit3 < 1
replace cflimit2 = 1 if cflimit3 > 1
replace cflimit2 = . if cflimit3 == .
tab cflimit3 cflimit2, mi

svy, subpop(white): logit cflimit2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit cflimit2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit cflimit2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

tab cfads3
gen cfads2 = cfads3 
replace cfads2 = 0 if cfads3 < 1
replace cfads2 = 1 if cfads3 > 1
replace cfads2 = . if cfads3 == .
tab cfads3 cfads2, mi

svy, subpop(white): logit cfads2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit cfads2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit cfads2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

* check odds ratio size against black scale
tab blscale
gen blscale2 = blscale
replace blscale2 = 0 if blscale <= 0
replace blscale2 = 1 if blscale > 0
replace blscale2 = . if blscale == .

svy, subpop(white): logit blscale2 rresent female married agegroup educ hhincome unemp, or
svy, subpop(white): logit blscale2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar, or
svy, subpop(white): logit blscale2 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA, or

*******************************************************************************************************************************
*** Black restricted sample
*** Start Study 2 here
*******************************************************************************************************************************

// Feeling thermometer: blacks and whites
tab ftcasi_black 
gen thermoblack = ftcasi_black 
recode thermoblack (-9/-1 = .)
sum thermoblack

tab ftcasi_white
gen thermowhite = ftcasi_white
recode thermowhite (-9/-1 = .)
sum thermowhite

gen problackthermo = 0 if (thermoblack !=. & thermowhite !=.)
replace problackthermo = 1 if (thermoblack >= thermowhite) & thermoblack !=. & thermowhite !=.

// Stereotype: hardworking
tab stype_hwkblack 
gen stereoblazy = stype_hwkblack 
recode stereoblazy (-9/-1 = .)
tab stereoblazy

tab stype_hwkwhite
gen stereowlazy = stype_hwkwhite
recode stereowlazy (-9/-1 = .)
tab stereowlazy

gen problackstereolazy = 0 if (stereoblazy !=. & stereowlazy !=.)
replace problackstereolazy = 1 if (stereowlazy >= stereoblazy) & stereoblazy !=. & stereowlazy !=.

// Stereotype: intelligent
tab stype_intblack
gen stereobunintel = stype_intblack
recode stereobunintel (-9/-1 = .)
tab stereobunintel

tab stype_intwhite 
gen stereowunintel = stype_intwhite 
recode stereowunintel (-9/-1 = .)
tab stereowunintel

gen problackstereounintel = 0 if (stereobunintel !=. & stereowunintel !=.)
replace problackstereounintel = 1 if (stereowunintel >= stereobunintel) & stereobunintel !=. & stereowunintel !=.

// Life affected by what happens to blacks
tab link_black
tab link_black, nol // this should be coded 1 for restricted black sample

// Admiration for blacks
tab racecasi_admblacks 
tab racecasi_admblacks, nol // this should be coded 1 or 2 or 3 or 4 for restricted black sample

// Sympathy for blacks
tab racecasi_sympblacks 
tab racecasi_sympblacks, nol // this should be coded 1 or 2 or 3 or 4 for restricted black sample

// Problack variable
gen problack = 0
replace problack = 1 if (problackthermo == 1) & (problackstereolazy == 1) & (problackstereounintel == 1) & (link_black == 1) & (racecasi_admblacks == 1 | racecasi_admblacks == 2 | racecasi_admblacks == 3 | racecasi_admblacks == 4) & (racecasi_sympblacks == 1 | racecasi_sympblacks == 2 | racecasi_sympblacks == 3 | racecasi_sympblacks == 4) & (black == 1)
tab problack black

// Check problack variable
tab ftcasi_black problack
tab stype_hwkblack stype_hwkwhite if problack == 1
tab stype_intblack stype_intwhite if problack == 1
tab problackthermo problack
tab problackstereolazy problack
tab problackstereounintel problack
tab link_black problack
tab racecasi_admblacks problack
tab racecasi_sympblacks problack
tab black problack

*******************************************************************************************************************************
*** Discriminant validity by samples of whites, black, and the most pro-black blacks
*******************************************************************************************************************************

tab white
tab black
tab problack

svyset [pweight=weight_full], strata(strata_full) psu(psu_full)

**** Do not run the following regressions unless the code for line 31 is shut off! ****

svy, subpop(white): reg oppblackpref4     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg oppaactionuniv7   rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg oppaactionwork7   rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg oppfairjobblacks4 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg oppaidblacks7     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(white): reg blscale           rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

svy, subpop(black): reg oppblackpref4     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(black): reg oppaactionuniv7   rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(black): reg oppaactionwork7   rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(black): reg oppfairjobblacks4 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(black): reg oppaidblacks7     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(black): reg blscale           rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

svy, subpop(problack): reg oppblackpref4     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(problack): reg oppaactionuniv7   rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(problack): reg oppaactionwork7   rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(problack): reg oppfairjobblacks4 rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(problack): reg oppaidblacks7     rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA
svy, subpop(problack): reg blscale           rresent female married agegroup educ hhincome unemp gop dem consv jobguar govtALPHA tradALPHA authALPHA egalALPHA

******************************************************************************************************************************
*** [rresent3] Check whether inclusion of Irish // This set of commands was for one of the reviewers
*******************************************************************************************************************************
gen rresentNOiij = 0
replace rresentNOiij = rresentNOiij + resent2 + resent3 + resent4
replace rresentNOiij = . if resent2 == .
replace rresentNOiij = . if resent3 == .
replace rresentNOiij = . if resent4 == .
sum rresentNOiij
egen rresentNOiij_std = std(rresentNOiij)
replace rresentNOiij = rresentNOiij_std

pwcorr rresent rresentNOiij, sig obs
